package pojo;

import IOService.*;

import java.util.Scanner;

public class NormalUser extends User{
    private int id;
    private String password;
    private int mater;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public int getMater() {
        return mater;
    }

    public void setMater(int mater) {
        this.mater = mater;
    }
    public NormalUser(String name) {
        super(name);
        this.ioServices=new IOService[]{
                new ExitService(),
                new ShowService(),
                new SelectService()
        };
 }
    @Override
    public int menu() {
        System.out.println("*************************************");
        System.out.println(name+" 欢迎您来到超市管理系统！");
        System.out.println("1.退出系统");
        System.out.println("2.显示所有物品");
        System.out.println("3.查找物品");
        System.out.println("*************************************");
        Scanner sc=new Scanner(System.in);
        int i=sc.nextInt();
        return i-1;
    }
}
